from center import cel
import time

@cel.task
def send_msg(name):
    task_id = send_msg.request.id
    print(f"Task ID: {task_id}")

    print("向%s发送短信..." % name)
    time.sleep(5)
    print("向%s发送短信完成" % name)
    return "ok"